﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcMusicStore.ViewModels.StoreBrowserViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Duyệt albums
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <%Html.RenderAction("SearchAdvance", "Home", new { genreId = Model.Genre.GenreId }); %>
    
    <h2><%=Model.Genre.Name %> albums:</h2>
    
    <ul id="album-list">
        <%foreach (var album in Model.Albums){ %>
            <%--<li><%=Html.ActionLink(album.Title, "Details", new {id = album.AlbumId}) %></li>--%>  
            <li>
                <a href="<%= Url.Action("Details", new { id = album.AlbumId }) %>"> 
                    <img id="image" alt="<%= album.Title %>" src="<%= album.AlbumArtUrl %>" /> 
                    <span><%= album.Title %> </span>
                    </br><span class="UnitPrice"><%=album.Price * Convert.ToDecimal(ViewData["vat"])%> $</span>
                </a>
            </li>  
        <%} %>
    </ul>

</asp:Content>
